/*
 * Pipeline.h
 *
 *  Created on: Jul 5, 2012
 *      Author: s131705
 */

#ifndef PIPELINE_H_
#define PIPELINE_H_

#include <list>
using namespace std;

#include "Command.h"

class Pipeline {
private:
	list<Command*> *commands;
public:
	Pipeline();
	virtual ~Pipeline();

	bool hasCommands(){return commands->size() > 0;}
	Command* popCommand();
	void addCommand( Command* c ){ commands->push_back( c ); };
	string toString();
	bool hadExitCommand();
};

#endif /* PIPELINE_H_ */
